// 引入公用的组件
import Svgicon from "./Svgicon/index.vue"
import Pagination from "./Pagination/index.vue"
import Publicselector from "./Publicselector/index.vue"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
// console.log(ElementPlusIconsVue);

import type { App } from "vue"
const componentsone: any = { Svgicon, Pagination, Publicselector }

export default {
  install(app: App) {
    Object.keys(componentsone).forEach((item) => {
      app.component(item, componentsone[item])
    })
    // ui组件库图标组件进行注册
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
